package com.bdqn.crm.controller;

import com.bdqn.crm.service.SysUserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class IndexController {

    @Resource
    private SysUserService userService;

    @RequestMapping("/index")
    public String index() {
        System.out.println("index进来了");
        return "login";
    }


    @RequestMapping("/login")
    public String login() {
        System.out.println("login进来了");
        return "login";
    }

    @RequestMapping("/main")
    public String main() {
        return "main";
    }

    @RequestMapping("403")
    public String unauthorized(){
        return "403";
    }
}
